template <typename T>
struct Elem
{
	Elem<T>* prev;
	Elem<T>* next;
	T value;
};
template <typename T>
class stack
{
public:
	stack();
	~stack();
	void stack_push(T);
	T stack_pop();
	bool stack_dump();
	bool stack_Ok();
	int GetSize();
    int GetCount();
private:
	Elem<T>* top ;
	int count;

};
